package com.fyl.pattern.prototype.test1;

/**
 * 奖状类
 */
public class Citation implements Cloneable {
    public Citation() {
        System.out.println("无参构造创建对象");
    }

    //奖状上的学生姓名
    private Student student;

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    protected Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }

    public void show(){
        System.out.println(student.getName()+"同学：在2025学年第一学期中表现优秀，被评为三好学生。特发此奖状！");
    }
}
